cody - HTMLify profile

cody
4270 Files
633434 Views
Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/86 - Weight Conversion Tool
const form = document.querySelector('form');
//add an event listener to the form
form.addEventListener('submit', function(e){
e.preventDefault();
const input = document.querySelector('input');
//add an event listener to the form
form.addEventListener('submit', function(e){
e.preventDefault();
const input = document.querySelector('input');
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="styles.css">
<title>Weight Converstion Tool</title>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="styles.css">
<title>Weight Converstion Tool</title>
form {
background-color: rgb(241, 9, 144);
color: white;
width: 500px;
height: 300px;
margin: 100px auto 100px;
padding: 25px;
}
background-color: rgb(241, 9, 144);
color: white;
width: 500px;
height: 300px;
margin: 100px auto 100px;
padding: 25px;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style 30.css">
<title>Weight Converstion Tool</title>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style 30.css">
<title>Weight Converstion Tool</title>